package Tween
{
	import Plugin.TweenObjectPlugin;
	
	import Tools.RandTool;

	public class ShakeTween extends TweenObjectPlugin
	{
		public var lockX:Number=0;
		public var lockY:Number=0;
		
		public var strong:Number=10;
		
		public function ShakeTween()
		{
			super();
		}
		override protected function _update():void
		{
			if(time==0)return;
			
			var x:Number = 0;
			var y:Number = 0;
			x=RandTool.randInt(-strong,strong)+lockX;
			y=RandTool.randInt(-strong,strong)+lockY;
			go.moveTo(x,y,handleX,handleY);
		}
	}
}